package smartcampus.scjava.POJO.DO;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;

/**
 * 课程详情表
 * @TableName schedule
 */
@TableName(value ="schedule")
public class Schedule implements Serializable {
    /**
     * 主键ID,自动增长
     */
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 课程id
     */
    private Integer courseid;

    /**
     * 课程名称
     */
    private String coursename;

    /**
     * 第几学期
     */
    private Integer semester;

    /**
     * 考试时间
     */
    private Date examtime;

    /**
     * 考试地点
     */
    private String examplace;

    /**
     * 任课老师
     */
    private String teacher;

    /**
     * 1-13，代表每天的第几节课
     */
    private Integer classtime;

    /**
     * 1-7，代表星期一至星期天
     */
    private Integer schooltime;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 更新时间
     */
    private Date updateTime;

    /**
     * 逻辑删除字段:0.存在;1.删除
     */
    private Integer isDelete;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    /**
     * 主键ID,自动增长
     */
    public Integer getId() {
        return id;
    }

    /**
     * 主键ID,自动增长
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 课程id
     */
    public Integer getCourseid() {
        return courseid;
    }

    /**
     * 课程id
     */
    public void setCourseid(Integer courseid) {
        this.courseid = courseid;
    }

    /**
     * 课程名称
     */
    public String getCoursename() {
        return coursename;
    }

    /**
     * 课程名称
     */
    public void setCoursename(String coursename) {
        this.coursename = coursename;
    }

    /**
     * 第几学期
     */
    public Integer getSemester() {
        return semester;
    }

    /**
     * 第几学期
     */
    public void setSemester(Integer semester) {
        this.semester = semester;
    }

    /**
     * 考试时间
     */
    public Date getExamtime() {
        return examtime;
    }

    /**
     * 考试时间
     */
    public void setExamtime(Date examtime) {
        this.examtime = examtime;
    }

    /**
     * 考试地点
     */
    public String getExamplace() {
        return examplace;
    }

    /**
     * 考试地点
     */
    public void setExamplace(String examplace) {
        this.examplace = examplace;
    }

    /**
     * 任课老师
     */
    public String getTeacher() {
        return teacher;
    }

    /**
     * 任课老师
     */
    public void setTeacher(String teacher) {
        this.teacher = teacher;
    }

    /**
     * 1-13，代表每天的第几节课
     */
    public Integer getClasstime() {
        return classtime;
    }

    /**
     * 1-13，代表每天的第几节课
     */
    public void setClasstime(Integer classtime) {
        this.classtime = classtime;
    }

    /**
     * 1-7，代表星期一至星期天
     */
    public Integer getSchooltime() {
        return schooltime;
    }

    /**
     * 1-7，代表星期一至星期天
     */
    public void setSchooltime(Integer schooltime) {
        this.schooltime = schooltime;
    }

    /**
     * 创建时间
     */
    public Date getCreateTime() {
        return createTime;
    }

    /**
     * 创建时间
     */
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    /**
     * 更新时间
     */
    public Date getUpdateTime() {
        return updateTime;
    }

    /**
     * 更新时间
     */
    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    /**
     * 逻辑删除字段:0.存在;1.删除
     */
    public Integer getIsDelete() {
        return isDelete;
    }

    /**
     * 逻辑删除字段:0.存在;1.删除
     */
    public void setIsDelete(Integer isDelete) {
        this.isDelete = isDelete;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Schedule other = (Schedule) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getCourseid() == null ? other.getCourseid() == null : this.getCourseid().equals(other.getCourseid()))
            && (this.getCoursename() == null ? other.getCoursename() == null : this.getCoursename().equals(other.getCoursename()))
            && (this.getSemester() == null ? other.getSemester() == null : this.getSemester().equals(other.getSemester()))
            && (this.getExamtime() == null ? other.getExamtime() == null : this.getExamtime().equals(other.getExamtime()))
            && (this.getExamplace() == null ? other.getExamplace() == null : this.getExamplace().equals(other.getExamplace()))
            && (this.getTeacher() == null ? other.getTeacher() == null : this.getTeacher().equals(other.getTeacher()))
            && (this.getClasstime() == null ? other.getClasstime() == null : this.getClasstime().equals(other.getClasstime()))
            && (this.getSchooltime() == null ? other.getSchooltime() == null : this.getSchooltime().equals(other.getSchooltime()))
            && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
            && (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime()))
            && (this.getIsDelete() == null ? other.getIsDelete() == null : this.getIsDelete().equals(other.getIsDelete()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getCourseid() == null) ? 0 : getCourseid().hashCode());
        result = prime * result + ((getCoursename() == null) ? 0 : getCoursename().hashCode());
        result = prime * result + ((getSemester() == null) ? 0 : getSemester().hashCode());
        result = prime * result + ((getExamtime() == null) ? 0 : getExamtime().hashCode());
        result = prime * result + ((getExamplace() == null) ? 0 : getExamplace().hashCode());
        result = prime * result + ((getTeacher() == null) ? 0 : getTeacher().hashCode());
        result = prime * result + ((getClasstime() == null) ? 0 : getClasstime().hashCode());
        result = prime * result + ((getSchooltime() == null) ? 0 : getSchooltime().hashCode());
        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
        result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode());
        result = prime * result + ((getIsDelete() == null) ? 0 : getIsDelete().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", courseid=").append(courseid);
        sb.append(", coursename=").append(coursename);
        sb.append(", semester=").append(semester);
        sb.append(", examtime=").append(examtime);
        sb.append(", examplace=").append(examplace);
        sb.append(", teacher=").append(teacher);
        sb.append(", classtime=").append(classtime);
        sb.append(", schooltime=").append(schooltime);
        sb.append(", createTime=").append(createTime);
        sb.append(", updateTime=").append(updateTime);
        sb.append(", isDelete=").append(isDelete);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}